home *** CD-ROM | disk | FTP | other *** search
/ Champak 146 / (Vol 146) Jan 07 2012.iso / Games / star_catcher.swf / scripts / DefineButton2_167 / BUTTONCONDACTION on(press, keyPress Up).as
Encoding:
Text File  |  2012-01-07  |  353 b   |  14 lines

  1. on(press, keyPress "<Up>"){
  2.    if((_root.gOlieState == "still_left" || _root.gOlieState == "still_right") && _root.gGamePaused == false)
  3.    {
  4.       if(_root.gOlieState == "still_left")
  5.       {
  6.          _root.fnOlieUp("left");
  7.       }
  8.       else if(_root.gOlieState == "still_right")
  9.       {
  10.          _root.fnOlieUp("right");
  11.       }
  12.    }
  13. }
  14.